<?php
/**
 * 规格详情
 * User: ws
 * Date: 2018/8/7
 * Time: 18:17
 */

namespace app\admin\controller;
use app\admin\model\SpecItem as SpecItemModel;

class Item extends Init
{

    function index(){
        if ($this->request->isAjax()) {
            $list = SpecItemModel::where('item_id > 1')->paginate(input('limit'))->toArray();
            return json($result = ['code'=>0,'msg'=>'获取成功','data'=>$list['data'],'count'=>$list['total']]);die;
        }
        return $this->fetch('list');
    }
}